<template>
    <div>
        <button @click="increment">计数: {{ count }}</button>
    </div>
</template>

<script>
export default{
    name:'Options',
    data(){
        return{
            count: 0
        }
    },
    methods:{
        increment(){
            this.count++
        }
    },
    mounted(){
        console.log(`this inital count is ${this.count}`)
    }
}
</script>
